import request from '../utils/request.js'

// 绑定手机号
export const bindMobile = data => {
  return request({
    url: '/haowanyouxi/bindMobile',
    data
  })
}

// 判断订购状态
export const isCanPlay = data => {
  return request({
    url: '/haowanyouxi/isCanPlay',
    data
  })
}

// 发送订购验证码
export const sendCode = data => {
  return request({
    url: '/haowanyouxi/sendCode',
    data
  })
}

// 提交验证码订购
export const sendOrder = data => {
  return request({
    url: '/haowanyouxi/sendOrder',
    data
  })
}

// 获取好玩游戏分类列表
export const getCateList = data => {
  return request({
    url: '/ziyuan/getHaowanyouxiList',
    data
  })
}

// 好玩游戏获取轮播数据
export const getSwiperList = data => {
  return request({
    url: '/ziyuan/getHaowanyouxiLunBo',
    data
  })
}

// 好玩游戏获取最近热门
export const getHotList = data => {
  return request({
    url: '/ziyuan/getHaowanyouxiHot',
    data
  })
}

// 好玩游戏搜索
export const getSearchList = data => {
  return request({
    url: '/ziyuan/searchHaowanyouxi',
    data
  })
}
